home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Queries / PGetTextLocation.cpp < prev    next >
C/C++ Source or Header  |  1996-08-15  |  1KB  |  44 lines

  1. /*
  2.  *--- PGetTextLocation.cpp ------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:49 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PGetTextLocation.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PGetTextLocation.h"
  12. #include "PQuery.h"
  13. #include "PReplyBuf.h"
  14.  
  15. const size_t REPLY_SIZE = 17 * 4;
  16.  
  17. PGetTextLocation::PGetTextLocation()
  18. {
  19.     char temp[REPLY_SIZE];
  20.     
  21.     PQuery query(pm_gettextlocation, temp, REPLY_SIZE);
  22.     PReplyBuf reply(temp);
  23.     
  24.     reply    >>    nObjectID
  25.             >>    xAnchorBottom
  26.             >>    yAnchorBottom
  27.             >>    xAnchorTop
  28.             >>    yAnchorTop
  29.             >>    xRightTop
  30.             >>    yRightTop
  31.             >>    xRightBottom
  32.             >>    yRightBottom
  33.             >>    xRangeEndTop
  34.             >>    yRangeEndTop
  35.             >>    xRangeEndBottom
  36.             >>    yRangeEndBottom
  37.             >>    xLeftBottom
  38.             >>    yLeftBottom
  39.             >>    xLeftTop
  40.             >>    yLeftTop;    
  41. }
  42.  
  43. // end of PGetTextLocation.cpp
  44.